﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Main.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Linkmeme.Views.Home.Index" %>
<%@ Import Namespace="Linkmeme" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h2></h2>
    <%if (User.Identity.IsAuthenticated) {%>
        <%= Html.RenderUserControl("~/Views/Shared/UserProviderList.ascx", this.ViewData.CurrentProviderList) %>
    <%} %>
</asp:Content>

<%--<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        spotlight.Visible = ShowUserSelectedProviderList();
    }

    private bool ShowUserSelectedProviderList()
    {
        //return User.Identity.IsAuthenticated;
        return this.ViewData.CurrentProviderList != null;
    }
</script>--%>
